#include "PingPong.h"
#include <QDebug>

PingPong::PingPong(QObject *parent)
	: QObject(parent), run(false)
{

}

PingPong::~PingPong()
{

}

void PingPong::Pong()
{
	if (run)
	{
		emit Ping();
		qDebug() << "Pong";
	}
}

void PingPong::Run()
{
	run = true;
	emit Ping();
}

void PingPong::Stop()
{
	run = false;
}
